home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / primgad / p3partic.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.0 KB  |  83 lines

  1.  
  2. // JavaScript wrapper for p3partic.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_PARTICLE_GADGET_H = 1;
  7. include("real/primgad/p3level.js")
  8.  
  9.  
  10. var R3CLID_PARTICLEPROPGADGET = 302;
  11.  
  12.  
  13.  
  14.  
  15.  
  16. R3PAPGM_SETCHANNELVALUE = 302000;
  17.  
  18. function mR3PAPGM_SETCHANNELVALUE() {
  19.   DoA(this.r3obj, 302000, 0, R3TID_INTEGER, 0);
  20. }
  21.  
  22. // Description: private 
  23. // Virtual method
  24.  
  25. R3PAPGM_SETRENDERER9 = 302009;
  26.  
  27. function mR3PAPGM_SETRENDERER9() {
  28.   DoA(this.r3obj, 302009, 0, R3TID_INTEGER, 0);
  29. }
  30.  
  31. // Description: Register new particle property for the gadget
  32. // Virtual method
  33. // p3: Tag[], R3PAA_AttrId, R3PAA_VaId    
  34.  
  35. R3PAPGCM_REGISTERATTRIBUTE_r = 302010;
  36.  
  37. function mR3PAPGCM_REGISTERATTRIBUTE_r(p3) {
  38.   Do(this.r3obj, 302010, p3, R3TID_TAG, R3TNF_ARRAY);
  39. }
  40.  
  41. // Description: Register property gadget for a constructor. When the constructor is selected, the registered gadget.
  42. // Returns: Boolean, true if succeeded.
  43. // p1: String, constructor id string.
  44. // p2: Integer, class id of the gadget
  45.  
  46. R3PAPGCM_REGISTERCONSTRUCTOR = 302023;
  47.  
  48. function mR3PAPGCM_REGISTERCONSTRUCTOR(p1, p2) {
  49.   return   DoA3(this.r3obj, 302023, p1, R3TID_STRING, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
  50. }
  51.  
  52. // Description: Fetch the address of the given tab packer.
  53. // Returns: Object, packer
  54. // p3: Integer, tab index    
  55.  
  56. R3PAPGM_GETTABPACKER = 302025;
  57.  
  58. function mR3PAPGM_GETTABPACKER(p3) {
  59.   return R3ToJS(  DoA(this.r3obj, 302025, p3, R3TID_INTEGER, 0));
  60. }
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. function r3Particlepropgadget () { 
  68.    this.base = r3God;
  69.    if(arguments.length) {
  70.       this.base(R3CLID_PARTICLEPROPGADGET, arguments);
  71.    }
  72.    // Methods
  73.    this.SETCHANNELVALUE=mR3PAPGM_SETCHANNELVALUE;
  74.    this.SETRENDERER9=mR3PAPGM_SETRENDERER9;
  75.    this.REGISTERATTRIBUTE_r=mR3PAPGCM_REGISTERATTRIBUTE_r;
  76.    this.REGISTERCONSTRUCTOR=mR3PAPGCM_REGISTERCONSTRUCTOR;
  77.    this.GETTABPACKER=mR3PAPGM_GETTABPACKER;
  78.  
  79.    // Attributes
  80. }
  81.  
  82. r3Particlepropgadget.prototype=new r3Levelgadget;
  83. // p3partic.h_H